package com.syh.jn.scm.service.api.operation.supplier;

import com.syh.jn.scm.dto.operation.supplier.*;
import com.syh.jn.scm.service.core.BaseService;

import java.util.List;

public interface OperaSupplierService extends BaseService<OperaSupplierSto,OperaSupplierMto,OperaSupplierVo,Long> {
  /**
   * 启用
   */
  public void enabled(Long id);

  /**
   * 停用
   */
  public void disabled(Long id);
  /**
   * 添加供应商账号(运营端)
   * @param account
   * @return
   */
  public Boolean addAccount(OperaSupplierAccountSto account);
  /**
   * 修改供应商账号(运营端)
   * @param account
   * @return
   */
  public Boolean setAccount(OperaSupplierAccountMto account);

  /**
   * 根据id查地址列表
   * @return
   */
  public List<OperaSupplierAddressVo> getAddressListById(Long id);

  /**
   * 开账
   * @param id
   */
  void openAccount(Long id);

  /**
   * 反开账
   * @param id
   */
  void reversalAccount(Long id);
}
